import request from '@/utils/request'

export default {
    // 获取我的预约分页
    userReservationPage(data) {
        return request({
            url: '/biz/userReservation/page',
            method: 'GET',
            data: data
        })
    },
    // 提交我的预约表单 add为false时为编辑，默认为新增
    userReservationSubmitForm(data, add = true) {
        return request({
            url: '/biz/userReservation/'+ (add ? 'add' : 'edit'),
            method: 'POST',
            data: data
        })
    },
    // 删除我的预约
    userReservationDelete(data) {
        return request({
            url: '/biz/userReservation/delete',
            method: 'POST',
            data: data
        })
    },
    // 获取我的预约详情
    userReservationDetail(data) {
        return request({
            url: '/biz/userReservation/detail',
            method: 'GET',
            data: data
        })
    },
}
